package com.team5101.controller;

import com.alibaba.fastjson.JSON;

import com.team5101.pojo.Resume;
import com.team5101.service.IResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ResumeController {
	@Autowired
	private IResumeService resumeService;

	@RequestMapping("/list")
	public String list() {
		List<Resume> list = resumeService.queryResumes();
		return JSON.toJSONString(list);
	}


}
